package patternmining.model.graph;

/**Edge implements the edge of a typed digraph.
 * 
 * @version 1.0, 30.04.2008
 * @author Holger Wiehen
 */
public class Edge{

    private EdgeType type;
    private SourceReference source;
    private int id;
    
    public Edge(int id, EdgeType type, SourceReference source){
        this.type = type;
        this.source = source;
        this.id = id;
    }

    public int id() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public SourceReference source() {
        return source;
    }

    public void setSource(SourceReference source) {
        this.source = source;
    }

    public EdgeType edgeType() {
        return type;
    }

    public void setEdgeType(EdgeType type) {
        this.type = type;
    }
    
    public String toString(){
        return "E-" + type.toString();
    }
    
  
}
